package com.hue.concurrent.day04;

import java.util.concurrent.locks.ReentrantLock;

/*
    公平锁和非公平锁
    公平锁：先进入等待队列的线程优先获取锁
 */
public class Demo11 {
    public static void main(String[] args) {
        //创建一个公平的锁
        ReentrantLock lock = new ReentrantLock(true);
    }
}
